package com.jcfy.framework.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AliyunOss 相关配置
 *
 * @author jcfy
 */
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOssConfig {

    /** KeyId */
    public static String accessKeyId;

    /** Secret */
    public static String accessKeySecret;

    /** OSS外网域名 */
    public static String endpoint;

    /** bucketName */
    public static String bucketName;

    public static String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        AliyunOssConfig.accessKeyId = accessKeyId;
    }

    public static String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        AliyunOssConfig.accessKeySecret = accessKeySecret;
    }

    public static String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        AliyunOssConfig.endpoint = endpoint;
    }

    public static String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        AliyunOssConfig.bucketName = bucketName;
    }
}
